package com.zz.staticCodeBlock;

public class Student {
    public  static int number;

    static{
        System.out.println("静态代码块被执行");
        number = 80;
    }

    //实例代码块
    {
        System.out.println("实例代码块执行了");
    }

    //无参构造器
    public Student(){
        System.out.println("无参构造器被执行");
    }

    public Student(String name){
        System.out.println("有参构造器被执行");
    }
}
